class DebugMiddleware:
    def process_response(self, request, response, spider):
        # 监控响应状态
        print(f"[DEBUG] {response.status} {request.url}")
        return response 